import {
  BankOutlined,
  TeamOutlined,
  HomeOutlined
} from '@ant-design/icons'
import {
  Navigate
} from 'react-router-dom'
import Redirect from '../utils/Redirect.jsx';
// import { lazy } from 'react';
// const Property = lazy(() => import('../components/property/Property'))
// const Client = lazy(() => import('../components/client/Client'))
// const Buildings = lazy(() => import('../components/property/Buildings'))
// const Interspace = lazy(() => import('../components/property/Interspace'))
// const ClientMange = lazy(() => import('../components/client/ClientMange'))
// const Linkman = lazy(() => import('../components/client/Linkman'))
// const Leasemanage = lazy(() => import('../components/client/Leasemanager'))
// const Merchants = lazy(() => import('../components/merchants/Merchants'))
// const SpatialPricing = lazy(() => import('../components/merchants/SpatialPricing'))
// const Rentcontrol = lazy(() => import('../components/merchants/Rentcontrol'))
// const Lease = lazy(() => import('../components/merchants/Lease'))
// const Propertyservice = lazy(() => import('../components/Propertyservice/Propertyservice.jsx'))
// const Leasemanager = lazy(() => import('../components/client/Leasemanager'))
// const Lesseewarranty = lazy(() => import('../components/Propertyservice/Lesseewarranty'))
// const WarrantySet = lazy(() => import('../components/Propertyservice/WarrantySet'))
// const AdminBulletin = lazy(() => import('../components/Propertyservice/Adminbulletin'))
// const Adminfeedback = lazy(() => import('../components/Propertyservice/Adminfeedback'))
// const Propertynotice = lazy(() => import('../components/Propertyservice/Propertynotice'))
import Property from "../components/property/Property";
import Client from '../components/client/Client';
import Buildings from '../components/property/Buildings';
import Interspace from '../components/property/Interspace';
import ClientMange from '../components/client/ClientMange';
import Linkman from '../components/client/Linkman';
import Leasemanage from '../components/client/Leasemanager';
import Merchants from '../components/merchants/Merchants';
import SpatialPricing from '../components/merchants/SpatialPricing';
import Rentcontrol from '../components/merchants/Rentcontrol';
import Lease from '../components/merchants/Lease';
import Propertyservice from '../components/Propertyservice/Propertyservice.jsx';
import Leasemanager from '../components/client/Leasemanager';
import Lesseewarranty from '../components/Propertyservice/Lesseewarranty';
import WarrantySet from '../components/Propertyservice/WarrantySet';
import AdminBulletin from '../components/Propertyservice/Adminbulletin';
import Adminfeedback from '../components/Propertyservice/Adminfeedback';
import Propertynotice from '../components/Propertyservice/Propertynotice';

export default [
  {
    label: '资产',
    path: 'property',
    key: 'property',
    iocn: <BankOutlined />,
    element: <Redirect comp={<Property></Property>} path='/home/property/buildings'></Redirect>,
    children: [
      {
        label: '楼宇',
        key: 'buildings',
        path: 'buildings',
        element: <Redirect comp={<Buildings></Buildings>} path='/home/property/buildings'></Redirect>,
      },
      {
        label: '空间',
        key: 'interspace',
        path: 'interspace',
        element: <Redirect comp={<Interspace></Interspace>} path='/home/property/interspace'></Redirect>,
      }
    ]
  },
  {
    label: '客户',
    key: 'client',
    path: 'client',
    iocn: <TeamOutlined />,
    element: <Redirect comp={<Client></Client>} path='/home/client/clientmange'></Redirect>,
    children: [
      {
        label: '客户管理',
        key: 'clientmange',
        path: 'clientmange',
        element: <Redirect comp={<ClientMange></ClientMange>} path='/home/client/clientmange'></Redirect>,
      },
      {
        label: '签约联系人',
        key: 'linkman',
        path: 'linkman',
        element: <Redirect comp={<Linkman></Linkman>} path='/home/client/linkman'></Redirect>,
      },
      {
        label: '租期管理员',
        key: 'leasemange',
        path: 'leasemange',
        element: <Redirect comp={<Leasemanage></Leasemanage>} path='/home/client/leasemange'></Redirect>,
      }
    ]
  },
  {
    label: '招商',
    key: 'merchants',
    path: 'merchants',
    iocn: <TeamOutlined />,
    element: <Merchants></Merchants>,
    children: [
      {
        label: '空间定价',
        key: 'spacePrice',
        path: 'spacePrice',
        element: <SpatialPricing></SpatialPricing>,
      },
      {
        label: '租控',
        key: 'rentcontrol',
        path: 'rentcontrol',
        element: <Rentcontrol></Rentcontrol>,
      },
      {
        label: '租约',
        key: 'lease',
        path: 'lease',
        element: <Lease></Lease>,
      }
    ]
  },
  {
    label: '物业服务',
    key: 'wuye',
    path: 'wuye',
    iocn: <HomeOutlined />,
    element: <Propertyservice></Propertyservice>,
    children: [
      {
        label: '租期管理',
        key: 'leasemanager',
        path: 'leasemanager',
        element: <Leasemanager></Leasemanager>,
      },
      {
        label: '租户报修',
        key: 'lesseewarranty',
        path: 'lesseewarranty',
        element: <Lesseewarranty></Lesseewarranty>,
      },
      {
        label: '报修设置',
        key: 'warrantySet',
        path: 'warrantySet',
        element: <WarrantySet></WarrantySet>,
      },
      {
        label: '管理员公告',
        key: 'adminbulle',
        path: 'adminbulle',
        element: <AdminBulletin></AdminBulletin>,
      },
      {
        label: '管理员反馈',
        key: 'adminfeed',
        path: 'adminfeed',
        element: <Adminfeedback></Adminfeedback>,
      },
      {
        label: '物业须知',
        key: 'propertynotice',
        path: 'propertynotice',
        element: <Propertynotice></Propertynotice>,
      }
    ]
  }
]